
QFrame#mainframe {
    background: #e2f3fd; /*背景蓝色调*/
    border: 1px solid #a9aaaa; /*左右下灰边*/
    border-top-color: #707070; /*顶部深灰边*/
}

QFrame#listArea {
    background: #fdfeff; /*几乎白底*/
    border-top: 1px solid #dee5ea; /*顶部深灰边*/
}

QFrame#mainframe:active {
    border: 1px solid white; /*激活状态，左右下白边*/
    border-top-color: #707070;
}

QWidget#centralwidget {
    background: #f1f9fe; /*中心窗口浅蓝色调*/
    border-top-left-radius: 10px; /*左上角搞个圆角*/
}

QWidget#titlebar {
    /*background: #e2f3fd;*/
}

QMainWindow  {
    /*background: #e2f3fd;*/
 }

QToolBar {
    background: none;
    border: none;
    padding: 0px;
}

QListView, QTreeView {
    border-top: 1px solid #dee5ea;
    outline: none;/*去掉选中时的虚线框*/
}

QListView::item, QTreeView::item {
    min-height: 28px;
}

QListView::item { /*QTreeView设置圆角会按列显示，比较难看，如何按行设置圆角？*/
    border-radius: 4px;
}

QListView::item:hover, QTreeView::item:hover {
    background: #f3f4f5;
}

/* item子控制器选中时属性设置*/
QListView::item:selected, QTreeView::item:selected {
    background: #cce8ff;
    color: black; /*若不设置，字体缺省为白色*/
}

QGroupBox {
    background: none;
    border: none;
    padding: 0px;
}

QLabel {
    background: none;
    font-size: 10pt;
    color: #181819;
}

QComboBox {
    background: none;
    border: 1px solid #eeefef;
    border-bottom-color: #646464;
    border-radius: 3px;
    padding: 2px 21px 2px 6px;/*内边距，有偏移18px为drop-down按钮留出空间，所以subcontrol-origin属性须设为padding*/
    min-height: 26px;
}

QComboBox:open {
    border-bottom: 1px solid #0060b6;
}

/*设置drop-down按钮上的箭头图片*/
QComboBox::down-arrow {
    image:url(:/icon/img/chevron-down.svg);
}

/*设置drop-down按钮属性，自定义combox的重头戏。必须设置*/
QComboBox::drop-down {
    width: 18px;/*drop-down按钮宽度*/
    background: none;
    border: none;
    subcontrol-origin: padding;/*drop-down按钮绘制位置依据父控件设置的padding决定*/
    subcontrol-position: right top;/*drop-down按钮相对父控件位置*/
    padding-right: 3px;
}

/*下拉框属性*/
QComboBox QAbstractItemView {
    background: white;
    margin-top: 4px;
    border: 1px solid #f0f0f0;/*边框*/
    border-radius: 3px;
    padding: 4px;
    outline: none;/*去掉选中时的虚线框*/
}

QComboBox QAbstractItemView::item {
    padding-top: 6px;
    padding-bottom: 6px;
}

QComboBox QAbstractItemView::item:selected {
    background: #f9f9f9;
    border-radius: 3px;
    color: black; /*文字颜色，始终黑色，否则系统默认反色显示*/
}

QPushButton {
    background: #fbfdff;
    border: 1px solid #eeefef;
    border-bottom-color: #d2d5d6;
    border-radius: 4px;
    outline: none;
    min-height: 24px;
    min-width: 48px;
    padding: 4px;
    font-size: 10pt;
}

QPushButton:hover {
    background: #e8eff4;
    border-color: #dae2e6;
}

QPushButton:pressed {
    background: #ebf3f8;
    border-color: #dae2e6;
    color: #5c5f61; /*字体颜色*/
}

QPushButton[whatsThis="bluebtn"] {
    background: #0061b8;
    border-bottom-color: #003a6e;
    color: white; /*字体白色*/
    /*font-weight: bold;*/
}

QPushButton[whatsThis="bluebtn"]:hover {
    background: #1970bf;
    border-bottom-color: #1970bf;
}

QPushButton[whatsThis="bluebtn"]:pressed {
    background: #3380c6;
    color: white; /*字体白色*/
}

QPushButton[whatsThis="redbtn"] {
    background: #d91000;
    border-bottom-color: #6e1800;
    color: white; /*字体白色*/
    /*font-weight: bold;*/
}

QPushButton[whatsThis="redbtn"]:hover {
    background: #e81123;
    border-bottom-color: #e81123;
}

QPushButton[whatsThis="redbtn"]:pressed {
    background: #f0303a;
    color: white; /*字体白色*/
}

QPushButton#titlebaricon, #titlebarclosebtn, #titlebarminbtn, #titlebarmaxbtn, #titlebarrestorebtn {
    background: none;
    border: none;
    border-radius: 0px;
    padding: 0px;
    width: 48px;
    height: 48px;
}

QPushButton#titlebaricon {
    /*icon-size: 24px 24px;*/
    image: url(:/icon/img/app.png);
}

QPushButton:hover#titlebarclosebtn {
    background: #d91000;
}

QPushButton:hover#titlebarminbtn, :hover#titlebarmaxbtn, :hover#titlebarrestorebtn {
    background: #d9e9f3;
}

QPushButton:pressed#titlebarminbtn, :pressed#titlebarmaxbtn, :pressed#titlebarrestorebtn {
    background: #ddedf7;
}

QPushButton:pressed#titlebarclosebtn {
    background: #ddedf7; /*TODO: 若与上面合并，看不到效果*/
}

QMenu {
    background-color: white;
    margin: 3px; /* some spacing around the menu */
    border-radius: 4px;
    icon-size: 24px 24px;
}

QMenu::item {
    margin: 2px;
    padding: 3px 5px 3px 5px;
    border-radius: 4px;
    min-width: 100px;
    min-height: 20px;
}

QMenu::item:selected {
    background: #e2dedf;
}

QMenu::item:checked {
    background: #f2eeef;
}

QMenu::indicator {
    width: 24px;
    height: 24px;
}

QMenu::icon {
    margin: 4px;
}

QToolBar QToolButton {
    background: none;
    border: none;
    padding: 5px 0px 5px 3px; /*上右下左，左侧为border预留3px空间*/
}

QToolBar QToolButton:hover {
    background: #fbfdff;
    color: #0061b8;
}

QToolBar QToolButton:checked {
    color: #0061b8;
    border-left: 3px solid #0061b8;
    padding-left: 0px; /*左边框替代padding*/
}

QScrollBar:vertical {
    border: none;
    background: transparent;
    width: 4px;
}

QScrollBar::handle:vertical {
    background: #8c8c8d;
    min-height: 20px;
    border-radius: 2px;
}

QScrollBar::handle:vertical:hover {
    background: darkgray;
}

QScrollBar::add-line:vertical, ::sub-line:vertical {
    border: none;
    background: transparent;
}
